
const random = {
    nextInt(bound){
        let float = Math.random() * bound ;
        let integer = float | 0 ;
        return integer ;
    },
    nextBoolean(){
        return Math.random() > 0.5 ;
    }
}

// 导出模块 (将整个random对象导出)
module.exports = random ;